package com.epi.two.locale;

import javax.swing.*;
import java.awt.EventQueue;
import java.text.NumberFormat;
import java.util.*;

/**
 * @author dxy
 * @version 1.0
 */
public class Retire {
    public static void main(String[] args) {
//        EventQueue.invokeLater(() -> {
//            var frame = new RetireFrame();
//            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//            frame.setVisible(true);
//        });
    }
}

class RetireFrame extends JFrame {
    private JTextField savingsField = new JTextField(10);
    private JTextField contriField = new JTextField(10);
    private JTextField incomeField = new JTextField(10);
    private JTextField currentAgeField = new JTextField(4);
    private JTextField retireAgeField = new JTextField(4);
    private JTextField deathAgeField = new JTextField(4);
    private JTextField inflationPercentField = new JTextField(6);
    private JTextField investPercentField = new JTextField(6);
    private JButton computeButton = new JButton();
    private JLabel languageLabel = new JLabel();
    private JLabel savingsLabel = new JLabel();
    private JLabel contriLabel = new JLabel();
    private JLabel incomeLabel = new JLabel();
    private JLabel currentAgeLabel = new JLabel();
    private JLabel retireAgeLabel = new JLabel();
    private JLabel deathAgeLabel = new JLabel();
    private JLabel inflationPercentLabel = new JLabel();
    private JLabel investPercentLabel = new JLabel();

    private RetireInfo info = new RetireInfo();

    private Locale[] locales = {Locale.US, Locale.CHINA, Locale.GERMANY};
    private Locale currentLocale;
    private JComboBox<Locale> localeComboB = new LocaleCombo(locales);

    private ResourceBundle res;
    private ResourceBundle resStrings;

    private NumberFormat currencyfmt;
    private NumberFormat numberfmt;
    private NumberFormat percentfmt;

    // TODO
    private class LocaleCombo extends JComboBox<Locale> {
        public LocaleCombo(Locale[] locales) {
        }
    }

    private class RetireInfo {
    }

}

